package text;
import java.time.LocalDate;
public class User {
    LocalDate date;
    double income;
    double outcome;
    String comment;
    String type;
    String money;
    public User() {
    }

    public User(LocalDate date, double income, double outcome, String comment, String type,String money) {
        this.date = date;
        this.income = income;
        this.outcome = outcome;
        this.comment = comment;
        this.type = type;
        this.money = money;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public double getIncome() {
        return income;
    }

    public void setIncome(double income) {
        this.income = income;
    }

    public double getOutcome() {
        return outcome;
    }

    public void setOutcome(double outcome) {
        this.outcome = outcome;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money += money;
    }

    @Override
    public String toString() {
        return "User{" +
                "date=" + date +
                ", income=" + income +
                ", outcome=" + outcome +
                ", comment='" + comment + '\'' +
                ", type='" + type + '\'' +
                ", money='" + money + '\'' +
                '}';
    }
}
